<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title>配置权限</title>
		<meta name="viewport" content="width=device-width,height=device-height, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
		<meta name="renderer" content="webkit" />
		<meta name="aplus-xplug" content="NONE">
		<link rel="stylesheet" type="text/css" href="/static/layui/css/layui.css" />
		<link rel="stylesheet" type="text/css" href="/static/iconfont/iconfont.css" />
		<link rel="stylesheet" type="text/css" href="/static/layui/css/modules/admin/default/admin.css" />
		<link rel="stylesheet" type="text/css" href="/static/css/new_layui.css" />
		<link rel="stylesheet" type="text/css" href="/static/css/default.css" />
		<script type="text/javascript" charset="utf-8" src="/static/layui/layui.js"></script>
		<script type="text/javascript" charset="utf-8" src="/static/js/index.js"></script>
		<style>
			.layui-input-block{
				margin-left: 40px;
				min-height: 26px;
				margin-top: 20px;
			}
			.layui-form-checkbox[lay-skin=primary]{
				min-height: 26px;
			}
			.son_check{
				margin-left: 70px;
			}
		</style>
	</head>

	<body class="default">
		<div style="margin: 30px 20px;">
			<form class="layui-form" lay-filter="tpl_accessConfig_config" action="{:url('accessConfig/saveConfig')}">
				<input type="hidden" name="staff_id" value="{$staff_id}" />
				{$temp=''}
				{volist name="data" id="list"}
					{if condition="$temp NEQ $list['module']"}
					{if condition="$temp NEQ ''"}
					</div>
					{/if}
					
					<div class="layui-input-block">
						<input type="checkbox" lay-filter="access_group" name="" lay-skin="primary" title="{$list.module}">
					</div>
					<div class="son_check">
					{php}
					$temp = $list['module'];
					{/php}
				{/if}
				<div class="layui-input-inline">
						<input type="checkbox" lay-filter="access_input" name="{$list.controller_name}/{$list.function_name}" lay-skin="primary" title="{$list.use_intro}">
					</div>
				{/volist}
				</div>
				<div class="layui-form-item">
					<div class="layui-input-block">
						<button type="button" class="layui-btn layui-btn-normal" lay-submit lay-filter="submit_accessConfig_config">保存数据</button>
					</div>
				</div>
			</form>
		</div>

		<script>
			var form_value = {$form_value};
		</script>

		<script src="/static/js/access_config/config.js" type="text/javascript" charset="utf-8"></script>
	</body>

</html>